package com.owo.springboot.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.UUID;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "reservations")
public class Reservation {
    @Id
    @Column(name = "id", updatable = false, length = 100)
    private String id;

    @Column(name = "user_id", nullable = false, length = 255)
    private String userId;

    @Column(name = "start_time", nullable = false)
    private LocalDateTime start_time;

    @Column(name = "end_time")
    private LocalDateTime end_time;

    @Column(name = "plate_number", length = 255)
    private String plateNumber;

    @Column(name = "plate_url", length = 255)
    private String plateUrl;

    @Column(name = "plate_park_id", length = 255)
    private String plateParkId;

    @Column(name = "price", length = 255)
    private String price;
}